package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 物业资产对象 property_asset
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyAsset extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资产ID */
    private Long assetId;

    /** 所属物业 */
    @Excel(name = "所属物业")
    private Long companyId;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String assetName;

    /** 类型：EQUIPMENT/TOOL/SPACE */
    @Excel(name = "类型：EQUIPMENT/TOOL/SPACE")
    private String assetType;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 价值 */
    @Excel(name = "价值")
    private BigDecimal value;

    /** 购置时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购置时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 状态：IN_USE/IDLE/DAMAGED/SCRAPPED */
    @Excel(name = "状态：IN_USE/IDLE/DAMAGED/SCRAPPED")
    private String status;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private String location;

    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setAssetName(String assetName) 
    {
        this.assetName = assetName;
    }

    public String getAssetName() 
    {
        return assetName;
    }

    public void setAssetType(String assetType) 
    {
        this.assetType = assetType;
    }

    public String getAssetType() 
    {
        return assetType;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setValue(BigDecimal value) 
    {
        this.value = value;
    }

    public BigDecimal getValue() 
    {
        return value;
    }

    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetId", getAssetId())
            .append("companyId", getCompanyId())
            .append("assetName", getAssetName())
            .append("assetType", getAssetType())
            .append("specification", getSpecification())
            .append("quantity", getQuantity())
            .append("value", getValue())
            .append("purchaseTime", getPurchaseTime())
            .append("status", getStatus())
            .append("location", getLocation())
            .toString();
    }
}
